from rest_framework_jwt.views import obtain_jwt_token
from django.conf.urls import url

from . import views

urlpatterns = [

    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMS_Code_View.as_view()),
    url(r'^usernames/(?P<username>\w+)/count/$', views.UserNameView.as_view()),
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileView.as_view()),

    url(r'^users/$', views.UserView.as_view()),
    #用来展示个人中心信息的路由
    url(r'^user/$', views.UserShowView.as_view()),
    # 保存发送邮件
    url(r'^email/$', views.UserEmailView.as_view()),


    url(r'^authorizations/', obtain_jwt_token),#登陆路由

    #验证邮箱的路由(忘记老师在哪看的前段传递过来的路径了)
    url(r'^emails/verification/$', views.UserEmailVifyView.as_view())

]










